<?php
/**
 * Standup class,
 * @package action
 * @author alcaitiff
 */
class Standup implements Action{

    /**
     * @static
     * @var integer
     **/
	static private $tick;
    /**
     * @static
     * @var Char
     **/
	static private $char;
    /**
    * Usage: standup
	*
	* @static
    * @param Command $command Command
    * @param int $tick Tick
    * @return String This command will return a msg
    */
	static public function run($command,$tick){
		self::$tick=$tick;
		self::$char=$command->character;
        $line=$command->command;
        self::$char->disableStatus('sit');
        self::$char->disableStatus('sleep');
        $room=self::$char->getRoom();
        $room->broadcastMessage(self::$char->charId.' stand up', self::$char);
        return 'You stand up';
	}
}